﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BPMS.Core
{
    /// <summary>
    /// 数据记录
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = false)]
    public class DataRecordAttribute : Attribute
    {
        /// <summary>
        /// 数据库名称
        /// </summary>
        public string DataBase { get; set; }
        /// <summary>
        /// 数据库结构名称
        /// </summary>
        public string Schema { get; set; }
        /// <summary>
        /// 表名或视图名称
        /// </summary>
        public string Name { get; set; }

        public DataRecordAttribute()
        {

        }

        public DataRecordAttribute(string dataBase, string schema, string record)
        {
            this.DataBase = dataBase;
            this.Schema = schema;
            this.Name = record;
        }
    }
}
